package ngram.util;

import java.util.Arrays;

/**
 *
 * @author Shimu
 * @date 29-Sep-2013
 */
public class StringUtil {
    
    private StringUtil(){}
    
    public static boolean equals(String s1, String s2) {
        byte[] s1Bytes = s1.getBytes(IOUtil.ENCODING),
                s2Bytes = s2.getBytes(IOUtil.ENCODING);
        return Arrays.equals(s1Bytes, s2Bytes);
    }
}
